package com.mayuanfei.springioc;

import lombok.Data;

/**
 * 用户类
 *
 * @author 老马
 * @date 2023-02-08 16:50
 */
@Data
public class User {

    public User() {
        System.out.println("user无参数构造方法执行");
    }

    public User(String userId, String userName, String address) {
        this.userId = userId;
        this.userName = userName;
        this.address = address;
        System.out.println("user全参数构造方法执行");
    }

    /**
     * 用户的id
     */
    private String userId;

    /**
     * 用户名称
     */
    private String userName;

    /**
     * 用户地址
     */
    private String address;
}